package redis_help

var HSetMaxLoginCntScript = `
		local key = KEYS[1]
		local field =KEYS[2]
        local target = tonumber(ARGV[1])
        local currentNum = 0
		local expire = 90000

        local current = redis.call('HGET', key, field)
		if current then
			currentNum = tonumber(current)
		end
        if currentNum  < target then
			redis.call('HSET', key, field, target)
        end
		return "Not Set"
    `
